const mongoose = require('mongoose')
const Schema = mongoose.Schema
const NewsType = {
    userId: String,
    title: String,
    content: String,
    category: Number,   //类别  1 2 3
    cover: String,   //封面
    isPublish: Number,   //未发布  已发布
    editTime: Date
}

const NewsModel = mongoose.model('news', new Schema(NewsType))

module.exports = NewsModel 
